//
//  Installation.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "Installation.h"

@implementation Installation

+ (instancetype)installationWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        NSNumberFormatter* numberFormatter = [[NSNumberFormatter alloc] init];
        self.installationId = [[numberFormatter stringFromNumber:dic[@"Id"]] intValue];
        self.NickName = dic[@"NickName"];
        self.PhoneNum = dic[@"PhoneNum"];
        self.Address = dic[@"Address"];
        self.UserName = dic[@"UserName"];
    }
    return self;
}

@end
